﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Studenmess:Person
    {
        private string major;
        private string grade;

        public string Major
        {
            get { return this.major; }
            set { this.major = value; }
        }
        public string Grade
        {
            get { return this.grade; }
            set { this.grade = value; }
        }
        public Studenmess()
        {
            ID = 10;
            Name = "李昌兵";
            Sex = "男";
            Cardid = 3838438;
            Tel = 666666;
            this.major = "软件";
            this.grade = "一年级";
        }
        public void Dayin()
        {   
            Console.WriteLine(this.ID+" "+this.Name+" "+this.Sex+" "+this.Cardid+" "+this.Tel+" "+this.major+" "+this.grade);
        }
    }
}
